<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%pageContext.setAttribute("ctx", request.getContextPath()); %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title>博客后台管理</title>
		<meta http-equiv="content-type" content="text/html;charset=UTF-8">
		<link href="${ctx}/admin/images/style.css" type="text/css"
			rel="stylesheet">
		<script type="text/javascript" src="${ctx}/admin/fckeditor/fckeditor.js"></script>
		<script type="text/javascript">
			window.onload = function(){
				var oFCKeditor = new FCKeditor( 'entry.content' ) ;
				oFCKeditor.BasePath = "${ctx}/admin/fckeditor/" ;
				oFCKeditor.Height=300;
				oFCKeditor.ReplaceTextarea() ;
			}
		</script>					
			
	</head>
	<body>
		<div id="container">
			<div id="main">
<h3>修改文章</h3>    
<s:form action="updateEntry" theme="simple">
<s:hidden name="entry.id" />
<s:hidden name="entry.hits" />
<s:hidden name="entry.commentHit" />
<table id="tab">
<tr>
    <td>主题: </td>
    <td><s:textfield name="entry.title"  size="110" maxlength="200"/></td>
</tr>
<tr>
    <td>分类:</td>
    <td>  <s:select name="entry.category.id" list="categorys" listValue="name" listKey="id"/>
</td>
</tr>
<tr>
    <td>允许评论: </td>
    <td><s:radio name="entry.allowComment" list="#{'1':'是','0':'否'}" />
</td>
</tr>
<tr>
    <td>状态: </td>
    <td><s:radio name="entry.status" list="#{'1':'开','0':'关'}" /></td>
</tr>
<tr>
    <td colspan="2">内容: <br/>
		<s:textarea  name="entry.content"/>
    </td>
</tr>

<tr>
    <td colspan="2">
					<s:submit name="submit" value="修改" />
		    </td>
</tr>
</table>
</s:form>
</div>
</div>
<%@include file="/admin/footer.jsp"%>